<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<?php $title = '更多'; ?>
<head>
	<meta charset="UTF-8">
	<title><?php echo ($title); ?></title>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
	<link rel="stylesheet" href="/Application/Home/View//Public/static/css/weui.min.css"/>
    <link rel="stylesheet" href="/Application/Home/View//Public/static/css/jquery-weui.min.css"/>
    <link rel="stylesheet" href="/Application/Home/View//Public/static/css/custom.css"/>
    <style type="text/css">
		body{
			background:#f1f1f1;
			color:#a3a3a3;
			font-family:"Microsoft YaHei";
		}
		.bd{
			padding:20px;
		}
        li{list-style: none;}
		p{
			font-size: 13px;
		}
		.weui-cell_select-before .weui-cell__hd:before{
			border-width: 0px 2px 2px 0;
			margin-top: -6px;
		}
		.weui-cell_select-before .weui-cell__hd:after{border:none;}
        .sstmb {
            padding-bottom: 60px;
        }
        .foot-ul{
			text-align:center;
			margin-top: 1rem;
			padding:10px;
			background: #22a9fe;
			opacity: 0.9;
		}
		.foot-ul a{
			color: #fff;
		}
		.foot-ul a img{
			max-width: 24px;
		}
		.pinglun{
			padding: 0 2px;
			background: #ff5959;
			border-radius: 50px;
			color: #fff;
			position: absolute;
			top:-6px;
			left:73px;
			font-size: 13px;
		}
		
		
		.weui-cell__bd p{
		color:#6b6969;
		}
        
	</style>
</head>

<body ontouchstart>

    <div class="container js_container">

    </div>
<div class="page">
<!--    我的名片-->
<div class="weui-cells" style="margin-top:10px;" >
          <a class="weui-cell weui-cell_access" href="<?php echo U('index/card_edit');?>">
			 <div class="weui-cell__hd"><img src="/Application/Home/View//Public/static/images/more_03.png" alt="" style="max-width:100%;margin-right:5px;display:block"></div>
            <div class="weui-cell__bd">
              <p>编辑名片</p>
            </div>
           <!--  <div class="weui-cell__ft">
                编辑-->
            <div class="weui-cell__ft"> </div>
          </a>
          
          
          <a class="weui-cell weui-cell_access" href="<?php echo U('Card/index');?>&userid=<?php echo (session('userid')); ?>">
			 <div class="weui-cell__hd"><img src="/Application/Home/View//Public/static/images/preview.png" alt="" style="max-width:100%;margin-right:5px;display:block"></div>
            <div class="weui-cell__bd">
              <p>预览名片</p>
            </div>
            <div class="weui-cell__ft">
            </div>
          </a>
          
          <div class="weui-cell weui-cell_switch">
                <div class="weui-cell__bd" style='font-size:13px'>允许在名片夹中显示自己的名片</div>
                <div class="weui-cell__ft">
                  <label for="switchCP" class="weui-switch-cp">
                    <input id="switchCP" class="weui-switch-cp__input" type="checkbox" <?php if($is_show == 0): ?>checked='checked'<?php endif; ?> onchange='chg_is_show(<?php echo ($is_show); ?>)'>
                    <div class="weui-switch-cp__box"></div>
                  </label>
                </div>
              </div>

        </div>
        
<!--   访客统计-->
<div style="margin-top:10px;" class="weui-cells">

             <a class="weui-cell weui-cell_access" href="<?php echo U('index/records');?>">
			 <div class="weui-cell__hd"><img src="/Application/Home/View//Public/static/images/more_06.png" alt="" style="max-width:100%;margin-right:5px;display:block"></div>
            <div class="weui-cell__bd">
              <p>访客统计</p>
            </div>
            <div class="weui-cell__ft">
            </div>
          </a>
            <a class="weui-cell weui-cell_access" href="<?php echo U('index/tax');?>">
			 <div class="weui-cell__hd"><img src="/Application/Home/View//Public/static/images/more_08.png" alt="" style="max-width:100%;margin-right:5px;display:block"></div>
            <div class="weui-cell__bd">
              <p>电子发票</p>
            </div>
            <div class="weui-cell__ft">
            </div>
          </a>
              <a class="weui-cell weui-cell_access" href="javascript:;" style="display:none;">
			 <div class="weui-cell__hd"><img src="/Application/Home/View//Public/static/images/more_10.png" alt="" style="max-width:100%;margin-right:5px;display:block"></div>
            <div class="weui-cell__bd">
              <p>查询企业</p>
            </div>
            <div class="weui-cell__ft">
            </div>
          </a>
        </div>        

<!--我的收益-->
<div style="margin-top:10px;" class="weui-cells">

             <a class="weui-cell weui-cell_access" href="<?php echo U('index/awards');?>">
			 <div class="weui-cell__hd"><img src="/Application/Home/View//Public/static/images/more_12.png" alt="" style="max-width:100%;margin-right:5px;display:block"></div>
            <div class="weui-cell__bd">
              <p>我的收益</p>
            </div>
            <div class="weui-cell__ft">
            </div>
          </a>
                       <a class="weui-cell weui-cell_access" href="<?php echo U('index/my_member');?>">
			 <div class="weui-cell__hd"><img src="/Application/Home/View//Public/static/images/hy.png" alt="" style="max-width:100%;margin-right:5px;display:block"></div>
            <div class="weui-cell__bd">
              <p>   我的会员</p>
            </div>
            <div class="weui-cell__ft">
            </div>
          </a>
          
            <a class="weui-cell weui-cell_access" href="<?php echo U('index/withdraw');?>">
			 <div class="weui-cell__hd"><img src="/Application/Home/View//Public/static/images/more_14.png" alt="" style="max-width:100%;margin-right:5px;display:block"></div>
            <div class="weui-cell__bd">
              <p>我要提现</p>
            </div>
            <div class="weui-cell__ft">
            </div>
          </a>
        </div>        

<!--修改密码-->
<div style="margin-top:10px;"  class="weui-cells">

             <a class="weui-cell weui-cell_access" href="<?php echo U('index/modify_pwd');?>">
			 <div class="weui-cell__hd"><img src="/Application/Home/View//Public/static/images/more_16.png" alt="" style="max-width:100%;margin-right:5px;display:block"></div>
            <div class="weui-cell__bd">
              <p>修改密码</p>
            </div>
            <div class="weui-cell__ft">
            </div>
          </a>
          
          
          
        </div>
        
        

<!--按钮-->
 <div style="margin:2rem auto;width:12rem;border-radius:20px;" class='demos-content-padded'>
      <a style="background:#22a9fe;" href="javascript:logout();" class="weui-btn weui-btn_primary">退出登录</a>
	  <!-- <p> -->
        <!-- <a href="javascript:;" class="weui-btn weui-btn_primary weui-btn_loading">正在加载...</a> -->
      <!-- </p> -->
		</div>


  </div>
  <div class="sstmb"></div>
<div class="foot-ul" style="position:fixed;bottom:0;width:100%;">
	<ul class="weui-flex ">
		<a class="weui-flex__item " href="<?php echo U('Card/index');?>&userid=<?php echo (session('userid')); ?>"><li ><img src="/Application/Home/View//Public/static/images/foot (1).png"><p style="line-height: 10px;">我的名片</p></li></a>
        
        <?php if($_SESSION['userid']!= ""): ?><a class="weui-flex__item " href="<?php echo U('index/card_edit');?>"><li ><img src="/Application/Home/View//Public/static/images/foot (3).png"><p style="line-height: 10px;">制作名片</p></li></a>
		<?php else: ?>
            <a class="weui-flex__item " href="<?php echo U('login/register');?>&tid=<?php echo ($tid); ?>"><li ><img src="/Application/Home/View//Public/static/images/foot (3).png"><p style="line-height: 10px;">制作名片</p></li></a><?php endif; ?>
      <!--  <a class="weui-flex__item " href="<?php echo U('index/cards');?>"><li ><img src="/Application/Home/View//Public/static/images/foot (2).png"><p style="line-height: 10px;">名片夹</p></li></a> -->
      
       <a class="weui-flex__item " onclick="gen_qrcode('<?php echo ($row["true_name"]); ?>', '<?php echo ($row["telephone"]); ?>', '<?php echo ($row["email"]); ?>', '<?php echo ($row["company_name"]); ?>','<?php echo ($row["profession"]); ?>','<?php echo ($row["position"]); ?>','<?php echo ($row["qq"]); ?>', '<?php echo ($row["address"]); ?>');"><li ><img src="/Application/Home/View//Public/static/images/foot (2).png"><p style="line-height: 10px;">存入通迅录</p></li></a>
      
       
		<a class="weui-flex__item " href="<?php echo U('index/more');?>"><li ><img src="/Application/Home/View//Public/static/images/foot (4).png"><p style="line-height: 10px;">更多</p></li></a>
	</ul>
</div>

        <script src="/Application/Home/View//Public/static/js/jquery-2.1.4.js"></script>
    <script src="/Application/Home/View//Public/static/js/jquery-weui.min.js"></script>
    <script src="/Application/Home/View//Public/static/js/fastclick.js"></script>
    <script src="/Application/Home/View//Public/static/layer/layer.js"></script>
    <script src="/Application/Home/View//Public/static/js/jquery.form.js"></script>
    <script>
      $(function() {
        FastClick.attach(document.body);
      });
    </script>
</body>
</html>
    
    <script>
       function logout(){
           layer.open({
                content: '您确定退出登录吗？'
                ,btn: ['确定', '取消']
                ,yes: function(index){
                    location.href='<?php echo U("index/logout");?>';
                }
              });
       }
       
       function chg_is_show(cur){
           $.ajax({
              url:'<?php echo U("index/chg_is_show");?>',
              data:{'cur':cur},
              success:function(data){
                  if(data == 1){
                     layer.open({
                        content: '修改成功!'
                        ,skin: 'msg'
                        ,time: 2 //2秒后自动关闭
                      });
                  }else{
                     layer.open({
                        content: '修改失败，请稍后重试!'
                        ,skin: 'msg'
                        ,time: 2 //2秒后自动关闭
                      });
                  }
              }
           })
       }
    </script>